<head>
	<meta name="layout" content="main" />
	<title>Edit Requestmap</title>
</head>

<body>

	<div class="nav">
		<span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
		<span class="menuButton"><g:link class="list" action="index">Requestmap Editor</g:link></span>
	</div>

	<div class="body">
		<h1>Edit Requestmap</h1>
		<g:if test="${flash.message}">
		<div class="message">${flash.message}</div>
		</g:if>
		<g:hasErrors bean="${requestmap}">
		<div class="errors">
		<g:renderErrors bean="${requestmap}" as="list" />
		</div>
		</g:hasErrors> 
		<g:form > 
			<div class="dialog">
				<table>
				<tbody>
					<tr class="prop">
						<td valign="top" class="name"><label for="url">样例：</label></td>
						<td valign="top" class="value"> 
                            /user/**=IS_AUTHENTICATED_ANONYMOUSLY<br>
                            /user/**=IS_AUTHENTICATED_FULLY<br>
                            /user/**=ROLE_ADMIN ,ROLE_COMPANY_CHIEF<br> 
						</td>
					</tr>
 					<tr class="prop">
						<td valign="top" class="name"><label for="url">权限组：</label></td>
						<td valign="top" class="value">  
                        <g:each in="${Role.list()}" var="role">
                            ${role.authority},
                        </g:each>
						</td>
					</tr>
					<tr class="prop">
						<td valign="top" class="name"><label for="url">权限映射：</label></td>
						<td valign="top" class="value">
							<g:textArea name="content" value="${content}" rows="5" cols="40" style="height:300px;font-size:14px;"/>
						</td>
					</tr>
 

				</tbody>
				</table>
			</div>

			<div class="buttons">
				<span class="button"><g:actionSubmit  action="update" value="更新权限" /></span>
 			</div>

		</g:form>

	</div>
</body>
